/*
 * h_cc2640r2f_define.h
 *
 *  Created on: Nov 11, 2020
 *      Author: hemingway
 */

#ifndef USER_HAL_DRIVERS_H_CC2640R2F_DEFINE_H_
#define USER_HAL_DRIVERS_H_CC2640R2F_DEFINE_H_

#define LOCK_BOARD_RELEASE                      0
/*
 * 1 for not use
 * 0 for use
 * */
#define DO_NOT_USE_UNIQUE_GAPROLE_ADVERDATA     1

/*
 * 1 for not use
 * 0 for use
 * */
#define DO_NOT_USE_UNIQUE_GAPROLE_SCANRSPDATA   1

/*
 * 0 for not use
 * 1 for use
 * */
#define ENABLE_GAPROLE_BDADDR                   0

/*
 * 0 for not use
 * 1 for use
 * */
#define ENABLE_GAPROLE_ADVDIRECTADDR            1

#if DO_NOT_USE_UNIQUE_GAPROLE_ADVERDATA
#define GAPROLE_ADVERDATA_LEN                   9
#endif

#if DO_NOT_USE_UNIQUE_GAPROLE_SCANRSPDATA
#define GAPROLE_SCANRSPDATA_LEN                 (28)
#endif
/*
 * The ble device information list
 * 0 for don't show the device information
 * 1 for show the device information
 * */
#define DEVINFO_ENABLE                  0
/*
 * 0 for disable ble gatt bond manager
 * 1 for enable ble gatt bond manager
 * */
#define BLE_BOND_ENABLE                 0

///*
// * 0 for disable ble gatt access information
// * 1 for enable it
// * */
#define BLE_GATT_ACCESS                 0
//
///*
// * 0 for disable ble gatt attribute information
// * 1 for enable it
// * */
#define BLE_GATT_ATTRIBUTE              0

/*
 * 1 for use malloc
 * 0 for use calloc
 * */
#define H_CC2640R2F_USE_MALLOC          1

#if H_CC2640R2F_USE_MALLOC
#include <icall_ble_api.h>

#define  H_CC2640R2F_DEBUG_MALLOC       ICall_malloc//malloc//malloc//ICall_malloc//Memory_calloc//malloc
#define  H_CC2640R2F_DEBUG_FREE         ICall_free//free//free//ICall_free//Memory_free//free
#else
#include <xdc/runtime/Memory.h>
#include <xdc/runtime/Error.h>

#define  H_CC2640R2F_DEBUG_CALLOC       Memory_calloc//malloc//ICall_malloc//Memory_calloc//malloc
#define  H_CC2640R2F_DEBUG_FREE         Memory_free//free//ICall_free//Memory_free//free
#endif

#define UART_PRINTF

#define H_CC2640R2F_DEBUG_BaudRate              115200
#define CSAM_RX_MAX_LENGTH                      128

#define UART_TX_IO                              IOID_23


#undef CC2640R2_LAUNCHXL_UART_TX
#define CC2640R2_LAUNCHXL_UART_TX               UART_TX_IO

#endif /* USER_HAL_DRIVERS_H_CC2640R2F_DEFINE_H_ */
